package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Sign;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SignMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Sign record);

    Sign selectByPrimaryKey(Long id);

    List<Sign> selectAll();

    Sign selectByDate(@Param("userId") Long userId, @Param("date") Date date);

    Sign selectByUserId(Long userId);

    void update(Sign sign);

    void updatePoints(Sign sign);  //更新积分的操作

}